* {
    padding: 0;
    margin: 0;
}

input {
    border-radius: 5px;
    background: rgba(255, 255, 255, .5);
}

.night {
    background: url(/static/image/logobacknight.png) repeat;
    background-size: 30px;
    color: white;
}

.day {
    background: url(/static/image/logobackday.jpg) repeat;
    background-size: 60px;
    color: black;
}


/*设置边框*/

.border_style {
    border: 1px solid red;
}

.select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/*管理员界面水印 end*/


/*--------大体框架start---------*/

.footer-content>ul>li>a:link {
    text-decoration: none;
    color: white;
}

.footer-content>ul>li>a:hover {
    color: aquamarine;
}

.footer-content>ul>li>a:active {
    color: salmon;
}

.footer-content>ul>li>a:visited {
    color: blue;
}


/*响应式布局 电脑平板*/

@media screen and (min-width: 768px) {
    /*left菜单按钮*/
    .fixed_position {
        position: fixed;
        left: 1px;
        width: 30px;
        height: 30px;
    }
    /*管理员界面水印 start*/
    #admin_back_watermark {
        position: absolute;
        z-index: -10;
        top: 30%;
        left: 45%;
    }
    #header {
        display: none;
    }
    .content {
        width: 100%;
        position: relative;
        padding-top: 10px;
        top: 50px;
        margin-bottom: 50px;
    }
    #headerPC {
        display: inline;
    }
    /*footer start*/
    .footer-content {
        height: 4%;
        color: #000088;
        position: fixed;
        font-size: 1em;
        width: 100%;
        background-color: #999999;
        bottom: 0;
        text-align: center;
    }
    .footer-content>ul {
        list-style: none;
        width: 80%;
        position: relative;
        left: 10%;
    }
    .footer-content>ul>li {
        display: inline;
        padding-left: 5%;
        position: relative;
        top: 5px;
        margin: 0;
        /* 将默认的外边距去掉 */
    }
}


/*响应式布局 手机端*/

@media screen and (max-width: 767px) {
    /*left菜单按钮*/
    .fixed_position {
        position: fixed;
        display: none;
        left: 1px;
        width: 30px;
        height: 30px;
    }
    /*管理员界面水印 start*/
    #admin_back_watermark {
        position: absolute;
        z-index: -10;
        top: 300px;
        left: 0;
        right: 0;
        text-align: center;
    }
    .content {
        width: 100%;
        position: relative;
        padding-top: 10px;
        top: -30px;
        margin-bottom: 50px;
    }
    #header {
        display: inline;
    }
    #headerPC {
        display: none;
    }
    #leftMenu {
        display: none;
    }
    /*footer start*/
    .footer-content {
        height: 8%;
        color: #000088;
        position: fixed;
        width: 100%;
        background-color: #999999;
        bottom: 0;
        text-align: center;
    }
    .footer-content>ul {
        list-style: none;
        width: 80%;
        position: relative;
        padding: 5px;
        left: 10%;
    }
    .footer-content>ul>li {
        display: inline;
        padding-left: 1%;
        padding-right: 1%;
        position: relative;
        top: 5px;
        margin: 0;
        /* 将默认的外边距去掉 */
    }
}


/*--------大体框架end---------*/


/*--------leftMenu start---------*/

#leftMenu {
    padding: 0;
    height: 75vh;
}

#leftMenu>ul {
    list-style: none;
    padding-top: 30px;
}

#leftMenu>ul>li {
    margin-top: 10px;
}

#leftMenu>ul>li>span {
    color: #e4b9c0;
    padding: 5px;
}

#leftMenu>ul>li>ul {
    list-style: none;
}

#leftMenu>ul>li>ul>li {
    text-align: center;
}

#leftMenu>ul>li>ul>li>a {
    text-decoration: none;
}

#leftMenu>ul>li>ul>li>a:link {
    color: #c0a16b;
}

#leftMenu>ul>li>ul>li>a:hover {
    color: red;
}

#heading1 {
    background: #fee;
}

#heading2 {
    background: #efe;
}

#heading3 {
    background: #eef;
}

.panel-body {
    background: #fdfdfd;
}


/*--------leftMenu end---------*/


/*------switch start------*/

#switch {
    display: inline;
    color: #e4b9c0;
    position: fixed;
    right: 5%;
}

#switch>div {
    position: relative;
    padding: 1px;
    margin: 3px;
    background-color: #c0a16b;
    width: 60px;
    height: 20px;
}

.switch_on {
    background-color: #4cae4c;
    position: relative;
    width: 50%;
    height: 90%;
    left: 50%;
}

.switch_off {
    background-color: #2e3436;
    position: relative;
    height: 99%;
    width: 50%;
}


/*------switch end------*/

.red {
    border-color: #f2aeae;
    background-color: rgba(255, 238, 238, 0.4);
}

.green {
    border-color: #aef2ae;
    background-color: rgba(238, 255, 238, 0.4);
}

.blue {
    border-color: #aeaef2;
    background-color: rgba(238, 238, 255, 0.4);
}

#location {
    border-width: 3px;
    border-style: solid;
    border-radius: 10px;
    margin-bottom: 10px;
}

#location_text {
    font-size: large;
    font-weight: bold;
}

#options,
#contents {
    border-width: 1px;
    border-style: solid;
    margin-bottom: 3px;
}

#contents {
    padding: 2% 4%;
}

.panel-title>.glyphicon {
    margin-right: 15px;
}

/* 不应换行的部分 */
.footer-content>ul>li>a,
.title-text,
#leftMenuList>li>ul>li {
    white-space: nowrap;
}

/* 在较窄电脑平板屏幕上隐藏标题的字体图标 */
@media all and (max-width: 942px) {
    #leftMenuList>*>div>*>:first-child {
        display: none;
    }
}

.navbar-brand {
    font-size: 24px;
    font-family: 'Ma Shan Zheng', cursive;
}

#time {
    float: right;
}

.hidden {
    display: none;
}

.invisible {
    opacity: 0;
}

.bad {
    border-width: 2px;
    border-color: red;
}

.warning {
    color: red;
    padding-left: 10px;
}

#success {
    right: 5%;
    opacity: 0;
    bottom: 10%;
    width: auto;
    height: 20%;
    display: none;
    position: absolute;
}

/* 数字右对齐 */
#cat_mgmt>*>tbody>*>:first-child {
    text-align: right;
}

td {
    padding: 10px;
}

thead {
    font-weight: bold;
}

table {
    width: 61.8%;
    margin: 10px auto;
}

#cat_mgmt>*>thead {
    color: white;
    background: #4cae4c;
}

#cat_mgmt>*>tbody>:nth-of-type(odd) {
    background: #e6ffe6;
}

#cat_mgmt>*>tbody>:nth-of-type(even) {
    background: #e0ffe0;
}